<?php
/**
 * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures
 * all the essential functionalities required for any enterprise.
 * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com
 *
 * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of
 * the GNU General Public License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along with this program;
 * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 * Boston, MA  02110-1301, USA
 *
 */
if(isset($records['messageType'])) {
if ($records['messageType'] == 'SUCCESS') {
	$records['message'] = $lang_GlobalParams_Saving_SUCCESS;
} elseif ($records['messageType'] == 'FAILURE') {
	$records['message'] = $lang_GlobalParams_Saving_FAILURE;
} else {
	$records['message'] = null;
}
} else {
	$records['message'] = null;
}

?>

<div class="formpage">
    <div class="outerbox">
        <div class="mainHeading"><h2>全局参数设置</h2></div>
        <?php if (isset($records['message'])) { ?>
            <div class="messagebar">
                <span class="<?php echo $records['messageType']; ?>"><?php echo $records['message']; ?></span>
            </div>
        <?php } ?>

<form action="?uniqcode=GlobalParams&action=save" method="post" id="paramsConfig" name="paramsConfig">
<table width="480" border="0" cellpadding="4" cellspacing="0">
	<tr>
      <td colspan="6"><h4>薪资参数</h4></td>
    </tr>

    <tr>
      <td colspan="3">是否计高温津贴</td>
      <td colspan="3">
        <input name="hadHightTempAllowance" id="hadHightTempAllowance" type="checkbox" <?php echo ($records['hadHightTempAllowance']?'checked':''); ?> />
      </td>
    </tr>
    <tr>
      <td>高温月份</td>
      <td>6月<input name="HightTempMonth6" id="HightTempMonth6" type="checkbox" <?php echo ($records['HightTempMonth6']?'checked':''); ?> /></td>
      <td>7月<input name="HightTempMonth7" id="HightTempMonth7" type="checkbox" <?php echo ($records['HightTempMonth7']?'checked':''); ?> /></td>
      <td>8月<input name="HightTempMonth8" id="HightTempMonth8" type="checkbox" <?php echo ($records['HightTempMonth8']?'checked':''); ?> /></td>
      <td>9月<input name="HightTempMonth9" id="HightTempMonth9" type="checkbox" <?php echo ($records['HightTempMonth9']?'checked':''); ?> /></td>
      <td>10月<input name="HightTempMonth10" id="HightTempMonth10" type="checkbox" <?php echo ($records['HightTempMonth10']?'checked':''); ?> /></td>
    </tr>
    <tr>
      <td colspan="3">是否计夜班津贴</td>
      <td colspan="3">
        <input name="hadNightAllowance" id="hadNightAllowance" type="checkbox" <?php echo ($records['hadNightAllowance']?'checked':''); ?> />
      </td>
    </tr>
    <tr>
      <td colspan="3">第2天培训是否计薪</td>
      <td colspan="3">
        <input name="secondDaySalary" id="secondDaySalary" type="checkbox" <?php echo ($records['secondDaySalary']?'checked':''); ?> />
      </td>
    </tr>
    <tr>
      <td colspan="3">是否扣钥匙工衣费</td>
      <td colspan="3">
        <input name="dedutKeyClothes" id="dedutKeyClothes" type="checkbox" <?php echo ($records['dedutKeyClothes']?'checked':''); ?> />
      </td>
    </tr>
    <tr>
      <td colspan="3">钥匙工衣费：</td>
      <td colspan="3"><input type="text" name="KeyClothesFee" id="KeyClothesFee" size="6"  value="<?php echo intval($records['KeyClothesFee']);?>"/>元</td>
    </tr>
    
    
    <!--tr>
      <td colspan="4"><h4>考勤年度设定</h4></td>
    </tr>
    <tr>
      <td align="right">允许迟到次数：</td>
      <td align="left"><input type="text" name="LaterNum" id="LaterNum" size="3"  value="<?php echo intval($records['LaterNum']);?>"/></td>
      <td align="right">允许早退次数：</td>
      <td align="left"><input type="text" name="ZaoTuiNum" id="ZaoTuiNum"   size="3"  value="<?php echo intval($records['ZaoTuiNum']);?>"/></td>
    </tr>
    <tr>
      <td align="right">允许请假次数：</td>
      <td align="left"><input type="text" name="QingJiaNum" id="QingJiaNum" size="3"  value="<?php echo intval($records['QingJiaNum']);?>"/></td>
      <td align="right">&nbsp;</td>
      <td align="left">&nbsp;</td>
    </tr>
    
    
    <tr>
      <td colspan="4"><h4>迟退旷规则</h4></td>
    </tr>
    
    <tr>
      <td align="right">允许迟到：</td>
      <td align="left"><input type="text" name="yunXuLate" id="yunXuLate" size="3"  value="<?php echo intval($records['yunXuLate']);?>"/>（分钟）</td>
      <td align="right">大于：</td>
      <td align="left"><input type="text" name="moreYunXuLate" id="moreYunXuLate"   size="3"  value="<?php echo intval($records['moreYunXuLate']);?>"/>（分钟）作为旷工</td>
    </tr>
    
    <tr>
      <td align="right">允许早退：</td>
      <td align="left"><input type="text" name="zaoTuiMinTime" id="zaoTuiMinTime" size="3"  value="<?php echo intval($records['zaoTuiMinTime']);?>"/>（分钟）</td>
      <td align="right">大于：</td>
      <td align="left"><input type="text" name="moreZaoTuiMinTime" id="moreZaoTuiMinTime"   size="3"  value="<?php echo intval($records['moreZaoTuiMinTime']);?>"/>（分钟）作为旷工</td>
    </tr-->
  </table>


    <div class="formbuttons">
        <input type="submit" class="savebutton" id="saveBtn"
            onmouseover="moverButton(this);" onmouseout="moutButton(this);"
            value="<?php echo $lang_Common_Save;?>" />
    </div>
</form>
</div>
<script type="text/javascript">
//<![CDATA[
    if (document.getElementById && document.createElement) {
        roundBorder('outerbox');
    }
//]]>
</script>
</div>
